import request from '@/utils/request'

// 查询升级文件列表
export function listUpgrade(query) {
  return request({
    url: '/equipment/upgrade/file/list',
    method: 'get',
    params: query
  })
}

// 上传文件
export function addUpgrade(data) {
  return request({
    url: '/equipment/upgrade/file/upload',
    method: 'post',
    data: data
  })
}

// 删除文件
export function delUpgrade(id) {
  return request({
    url: '/equipment/upgrade/file/' + id,
    method: 'delete',
  })
}
